import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/members',
    method: 'get',
    params: query
  })
}


export function createArticle(data) {
  return request({
    url: '/members',
    method: 'post',
    data
  })
}

export function getClubsOption() {
  return request({
    url: '/clubs/list',
    method: 'get',
  })
}
export function updateArticle(data) {
  return request({
    url: '/members',
    method: 'put',
    data
  })
  
}

export function outArticle(data) {
  return request({
    url: '/members/out',
    method: 'put',
    data
  })
  
}




export function deleteArticle(data) {
  return request({
    url: '/members',
    method: 'delete',
    data
  })
}